package com.woniuxy.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 商品订单详情表
 * </p>
 *
 * @author yang
 * @since 2021-09-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_product_order_detail")
@ApiModel(value = "商品订单详情表")
public class ProductOrderDetail implements Serializable {


    /**
     * 商品订单详情表Id
     */
    @TableId(value = "product_order_detail_id", type = IdType.AUTO)
    @ApiModelProperty("商品订单详情表Id")
    private Integer productOrderDetailId;

    /**
     * 用户id
     */
    @ApiModelProperty("用户id")
    private Integer productOrderDetailUserId;

    /**
     * 订单id
     */
    @ApiModelProperty("订单id")
    private Integer productOrderDetailOrderId;

    /**
     * 商品id
     */
    @ApiModelProperty("商品id")
    private Integer productOrderDetailStoreGoodId;

    /**
     * 商品数量
     */
    @ApiModelProperty("商品数量")
    private Integer productOrderDetailNum;

    /**
     * 商品单价
     */
    @ApiModelProperty("商品单价")
    private BigDecimal productOrderDetailPrice;

    /**
     * 商品小计
     */
    @ApiModelProperty("商品小计")
    private BigDecimal productOrderDetailTotal;

    /**
     * 商品名字
     */
    @ApiModelProperty("商品名字")
    private String productOrderDetailGoodName;

    /**
     * 记录新增时间
     */
    private Date rawAddTime;

    /**
     * 记录新增时间
     */
    private Date rawUpdateTime;


}
